package ru.mx1.servletContainer;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.Servlet;

import ru.mx1.servletContainer.conf.FilterWithMapping;
import ru.mx1.servletContainer.conf.ServletWithMapping;

/**
 * Mutable context description.
 * 
 * @author Stepan Koltsov
 */
public class Context {
    /** Path to war */
    private File war;
    
    private List<ServletWithMapping> servlets = new ArrayList<ServletWithMapping>();
    private List<FilterWithMapping> filters = new ArrayList<FilterWithMapping>();
    
    public void addServletMapping(String urlPattern, Servlet servletInstance) {
        // XXX:
    }
    
    public void addFilterMapping(String urlPattern, String filterClass) {
        // XXX:
    }
} //~
